﻿@model PartyManagement.Models.Menu

@{
    ViewBag.Title = "Edit";
    string eventID= ViewBag.eventID as string;
    string eventName = ViewBag.eventName as string;
   
}

<h2>Edit Menu of <strong style="color:#2E81B8">@eventName</strong></h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Menu</legend>

        @Html.HiddenFor(model => model.menuID)

        <div class="editor-label">
            @Html.LabelFor(model => model.menuName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.menuName)
            @Html.ValidationMessageFor(model => model.menuName)
        </div>

        
        <div class="editor-field">
            @Html.Hidden("eventID",eventID,new{@disabled="disabled"})
     
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
